package com.ustadzmenjawab.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public class ServerConnect {
	public static AppControlServiceAsync getAppControlService(){
		AppControlServiceAsync appService = GWT.create(AppControlService.class);
		ServiceDefTarget endpoint = (ServiceDefTarget) appService;
		String moduleRelativeURL = GWT.getModuleBaseURL() + "appcontrol";
		endpoint.setServiceEntryPoint(moduleRelativeURL);

		return appService;
	}
}
